//
//  SEDatePickerView.h
//  SEDatePicker
//  Created by 黄思清 on 2017/3/9.
//  Copyright © 2017年 com.phpwsd. All rights reserved.
//
// 调用
//SEDatePickerView *datepicker = [[SEDatePickerView alloc] initWithCompleteBlock:^(NSDate *startDate,NSDate *endDate) {
//    NSLog(@"\n开始时间： %@，结束时间：%@",startDate,endDate);
//    //                self.startTimeText.text = [startDate stringWithFormat:@"yyyy-MM-dd HH:mm"];
//    //                self.endtimeText.text = [endDate stringWithFormat:@"yyyy-MM-dd HH:mm"];
//}];
//datepicker.datePickerStyle = DateStyleShowYearMonthDay;
//datepicker.dateType = DateTypeStartDate;
//datepicker.minLimitDate = [NSDate date:@"2011-2-28 12:22" WithFormat:@"yyyy-MM-dd HH:mm"];
//datepicker.maxLimitDate = [NSDate date:@"2035-2-28 12:12" WithFormat:@"yyyy-MM-dd HH:mm"];
//[datepicker show];


#import <UIKit/UIKit.h>

typedef enum{
    DateStyleShowYearMonthDayHourMinute  = 0,
    DateStyleShowMonthDayHourMinute,
    DateStyleShowYearMonthDay,
    DateStyleShowMonthDay,
    DateStyleShowHourMinute
    
}XHDateStyle;

typedef enum{
    DateTypeStartDate,
    DateTypeEndDate
    
}XHDateType;

@interface SEDatePickerView : UIView

@property (nonatomic,assign)XHDateStyle datePickerStyle;
@property (nonatomic,assign)XHDateType dateType;
@property (nonatomic,strong)UIColor *themeColor;

@property (nonatomic, retain) NSDate *maxLimitDate;//限制最大时间（没有设置默认2049）
@property (nonatomic, retain) NSDate *minLimitDate;//限制最小时间（没有设置默认1970）

-(instancetype)initWithCompleteBlock:(void(^)(NSDate *,NSDate *))completeBlock;

-(void)show;


@end
